Upgrading Unix Master

Note: Be sure to back up your database before proceeding with this upgrade.

To upgrade Master:

Note: Back up your master directory.

  1. Stop the Master service.

  2. Navigate to the UnixMaster directory and copy install.bin from the upgrade folder to the target machine.

  1. Change the permissions on the install.bin file in the directory to make the file executable:

    chmod u+x install.bin
  2. Open a command prompt window and enter:

    sudo ./install.bin 
  3. Press Enter to move to the next step. The installer will extract resources and prepare the environment:

    The installer will guide you step-by-step. Review the recommendations:

    • If you need to go back, type "back" to end the installation procedure and complete the listed prerequisites before beginning the upgrade procedure again.

    • If you want to cancel the installation process, type "quit."

  1. Press Enter to move to the next step. Before you can upgrade to version 6.5 or higher, make sure to complete the necessary steps to prepare your database.

  1. Press Enter and the Choose Install Folder screen displays. Enter the install folder and press Enter. Or press Enter to choose the default folder:

    Note: The Upgrade program cannot proceed without knowing where the Master files it is modifying are located. You can manually enter the directory path.

    If the folder exists, the system confirms its presence. Press Enter to move to the next step.

  1. Choose the type of Master. Type 1 for Primary or type 2 for Backup:

  2. Specify if you want to use Disaster Recovery and press Enter:

  3. Select the database type on the Database Type screen:

    • 1 for the MSSQL server and navigate to the Get Microsoft Azure SQL screen.

    • 2 for the ORACLE server and navigate to the Get Autonomous Database screen.

    • 3 for the PostgreSQL server and navigate to the Enter DBA User name and Password screen.

  4. Select the Admiral Creation option and press Enter:

  5. Enter the information on the Enter DBA Username and Password screen so that the Unix Master can connect to and validate with the database:

    • Enter DBA Username – Enter a username for the Database Administrator.

    • Enter DBA Password – Enter the password for the Database Administrator.

    • Re-enter Password – Re-enter the password provided in the Enter DBA Password field.

  6. Provide this information so that the Unix Master can connect to the database:

    • Database HostName – Enter the hostname of the database server.

    • Portnumber – Enter the port number of the JDBC driver.

    • Service Name – Enter the Oracle System ID.

  7. Press Enter to move to the next step. The installer will detect that the database already exists. To use the same database, select option 1:

  8. Press Enter to choose the authentication methods.

  1. Review the Pre-Installation Summary information and press Enter to accept all the existing AD or LDAP configuration values.

    Note: You can provide an AD or LDAP configuration value if required by typing the new value and pressing Enter.

    Press Enter to continue. When the upgrade has completed, the Installation Complete panel appears:

  1. Press Enter to exit the installation process.

  2. Start the Master.

    ./tesm start

    The Master applies database changes automatically during its first startup after the upgrade procedure.

    Note: Use the dbcheck data integrity validation command using the tesm command if you encounter data inconsistencies post-installation.

  3. Run this command to check the version:

    /tesm status 
  4. Review the latest scheduler.out file in the log folder to confirm if the service has been initiated.

Upgrading the Unix Master for tidalrd User Creation in Oracle

Follow the steps below to upgrade the Unix Master for tidalrd user creation in Oracle.

To upgrade the Unix Master for tidalrd user creation:

  1. Log in as the SYSTEM user (or equivalent).

  1. Run these scripts:

    create user tidalrd IDENTIFIED BY <tidal123> DEFAULT TABLESPACE admiral_data; 
    grant connect, create session, create synonym, select any table to tidalrd; 
    grant create view, create procedure to tidal;

    Note: You can customize the read only user by changing the tidalrd username and password.

Upgrading the Unix Master for tidalrd User Creation in MSSQL

Follow the steps below to upgrade the Unix Master from the Command Line for tidalrduser creation in MSSQL.

To upgrade the Unix Master for tidalrd user creation:

  1. Log in as the SYSTEM user (or equivalent).

  1. Run these scripts:

    CREATE LOGIN tidalrd WITH PASSWORD = '<tidal123>', CHECK_POLICY = OFF, DEFAULT_DATABASE =[Admiral]; 
    USE [Admiral]
    CREATE USER tidalrd FOR LOGIN tidalrd WITH DEFAULT_SCHEMA = [Admiral]; 
    EXEC sp_addrolemember 'db_datareader', 'tidalrd'

    Note: You can customize the read-only user by changing the tidalrd username and password.

Upgrading the Unix Master via the Upgrade Program

The upgrade program upgrades the Master and the database.

To upgrade the Unix Master to the latest version:

  1. Complete all prerequisites in Upgrade Prerequisites. If your installation uses an Oracle database, your database administrator adds the Oracle privileges to the TA user account in Oracle before beginning the upgrade procedure, or the upgrade will fail:

    • Create sequence

    • Create trigger

  1. Ensure that the system queue has been set to 0 so that jobs will not launch. They will remain in the “Waiting on Resources” status until the system queue has been released.

  2. Stop the Master from the command line of the Master machine:

    ./tesm stop
  3. Copy install.bin to the target machine and change the permissions on the file:

    chmod u+x install.bin
  1. Run the upgrade program that you copied to your machine:

    sudo ./install.bin 
  1. Click Next. The Readme panel displays.

  2. Verify that you have completed the prerequisites listed on the Readme screen and click Next.

  3. Enter the directory path to the Master folder where the Master files were installed during the original installation of the Master.

    You can manually enter the directory path or click Choose to browse through the file directory to the Master folder. A confirmation message verifies that the required Master directories are in the specified location.

    Note: If the Upgrade program cannot find the Master files at the specified location, an error message displays and the installation process is aborted as soon as you acknowledge the error message.

  4. Click Next to move to the next step.

  5. Choose Primary or Backup on the Master Type screen and click Next.

  6. Choose Yes or No for the Disaster Recovery option.

  7. Choose ORACLE, MSSQL, or PostgreSQL database on the Database Type screen and click Next.

  8. Choose Yes or No on the Get Autonomous Database screen and click Next.

  9. Specify the DBA username and password and click Next.

  10. Provide information for the JDBC driver to connect to the database and click Next. The Master is being configured.

  11. Click Continue on the Existing Admiral database installation found screen.

  12. Click the Create Read-Only User option to create a read-only user in the Master database.

    Note: If read-only user is already existing, select Read-Only User already exists option.

  13. Choose AD or LDAP authentication and click Next.

  14. Specify the requited information.

  15. Click Next. The Pre-Installation Summary screen displays.

  16. Verify that the information is correct.

  17. Click Install. During the upgrade process, a progress bar displays. When the upgrade is complete, the Install Complete screen displays.

  18. Click Done.

  19. Start the Master.

    ./tesm start

    The database modifications are performed when the Master is first started after the installation.

Note: Use the dbcheck data integrity validation command using the tesm command if you encounter data inconsistencies post installation.

Post Upgrade Requirements

Note: To ensure the system works properly, run this command again after finishing the installation process.

Note: If upgrading from Tidal Automation versions before Tidal Automation 6.5.9, ensure you recompile all future schedules after the upgrade.

Password Re-encryption

Note: This step is necessary if you're upgrading to Tidal Automation 2024.3 because previous versions used a different method for encrypting passwords. By running these commands, you'll update to the new encryption scheme, ensuring that all systems work smoothly.

Note: If you are using Tidal Automation Client Manager versions older than 2024.3.20 and experiencing issues after upgrading and re-encrypting passwords, check the user-auth.xml file. If you see the <?xml version="1.0" encoding="UTF-8" standalone="no"?> tag, remove it.

To ensure the system operates correctly, re-run this command after completing the installation process:

  • tesm reencryptpwd master.props

Follow this instruction for the Master:

  1. Navigate to the installed TIDAL folder, and then to master/bin.

  2. Enter this command:

    sudo ./tesm reencryptpwd master.props